<?php

class m_website_documents_LayoutBase extends f_document_BaseDocument
{

	private $websiteId;
	private $originalLayout;
	private $structure;

	public function __construct($id = null, $lang = null)
	{
		parent::__construct($id, null, $lang);
	}

	public function getTableName()
	{
		return "m_website__layout";
	}

	public function getDocumentModel()
	{
		return "modules_website/layout";
	}
	
	protected function getFieldsBag()
	{
		return array('document_id', 			'document_uid', 			'document_model', 			'document_author', 			'document_creationdate', 			'document_modificationdate', 			'document_publicationstatus', 			'document_lang', 			'document_revision', 			'document_startpublicationdate', 			'document_endpublicationdate', 			'document_label', 			'websiteId', 			'originalLayout', 			'structure');
	}

	public function getdefaultPublicationstatus()
	{
		return "PUBLISHED";
	}

	/**
	 * @return boolean
	 */
	public function isRevisable()
	{
		return false;
	}
	
	/**
	 * @return boolean
	 */
	public function isLocalized()
	{
		return false;
	}	
	
    /**
	 * @return boolean
	 */
	public function isRecursive()
	{
		return $this->isRecursive;
	}
	
	/**
	 * @param boolean $value
	 * @return m_website_documents_LayoutBase
	 */	
	public function setIsRecursive($value)
	{
		$this->isRecursive = $value;
	}
		
	/**
	 * @return integer
	 */
	public function getWebsiteId()
	{
		return $this->websiteId;
	}

	/**
	 * @param integer $value
	 * @return m_website_documents_Layout
	 */
	public function setWebsiteId($value)
	{
		$this->websiteId = $value;
		return $this;
	}
	/**
	 * @return string
	 */
	public function getOriginalLayout()
	{
		return $this->originalLayout;
	}

	/**
	 * @param string $value
	 * @return m_website_documents_Layout
	 */
	public function setOriginalLayout($value)
	{
		$this->originalLayout = $value;
		return $this;
	}
	/**
	 * @return string
	 */
	public function getStructure()
	{
		return $this->structure;
	}

	/**
	 * @param string $value
	 * @return m_website_documents_Layout
	 */
	public function setStructure($value)
	{
		$this->structure = $value;
		return $this;
	}
	public function relationFields()
	{
		return array();
	}
	


}